package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreReceiveBillEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 仓库收货单 更新对象
 *
 * @author Gzhao 2021-03-11
 */
@Data
@ApiModel("仓库收货单-更新对象")
public class StoreReceiveBillUpdateDTO extends StoreReceiveBillSaveDTO{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    private Integer id;

    @Override
    public StoreReceiveBillEntity convertEntity() {
        StoreReceiveBillEntity target = new StoreReceiveBillEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
